<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">控制指令</h4>
</div>
<form id="defaultForm" method="post" class="form-horizontal" action="/project/indexManage/order_save">
    <div class="modal-body">
        <input name="id"  style="display: none" th:value="${controlOrder.id}">
            <div class="form-group">
                <label class="col-lg-3 control-label">编号</label>
                <div class="col-lg-6">
                    <input type="text" class="form-control" name="code" th:value="${controlOrder.code}"/>
                </div>
            </div>

        <div class="form-group">
                <label class="col-lg-3 control-label">名称</label>
                <div class="col-lg-6">
                    <input type="text" class="form-control" name="name"th:value="${controlOrder.name}" />
                </div>
        </div>


            <div class="form-group">
                <label class="col-lg-3 control-label">适用对象</label>
                <div class="col-lg-6">
                <select class="form-control" name="objName">
                    <option th:each="objName:${objects}" th:value="${objName.remark}" th:text="${objName.name}"
                            th:selected="${objName.code eq controlOrder.objName + ''}">
                    </option>
                </select>
                </div>
            </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">是否可手动操作</label>
            <div class="col-lg-6">
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="isControl" th:value="${controlOrder.isControl}" th:checked="${controlOrder.isControl}" >
                    </label>
                </div>
            </div>
        </div>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">保存</button>
    </div>
</form>

<script>
    //表单初始化
    initCheck();
</script>